package com.dokimall.auth.feign;


import com.dokimall.auth.vo.LoginAcct;
import com.dokimall.auth.vo.SociaUser;
import com.dokimall.auth.vo.UserRegistVo;
import com.dokimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("dokimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/regist")
    R memberRegist(@RequestBody UserRegistVo registVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody LoginAcct loginUserVo);

    @PostMapping("/member/member/social/login")
    R socialLogin(@RequestBody SociaUser sociaUser);
}
